<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <?php $this->load->view('admin/include/html_head')?>
    </head>
    
    <body class="nobackground" onload="$('#name').focus()">
    	
        <div id="login">
        
        	<h1 class="logo">
            	<a href=""><?php echo SITE_NAME_FULL?></a>
            </h1>
            <h2 class="loginheading">管理员登陆</h2>
        	<form id="login-form" action="#" method="post">
            <p>
            	<label for="name">用户名</label>
            	<input class="input-medium" type="text"  value="<?php echo set_value('name');?>" name="name" id="name"/>
        	</p>
        	<p>
            	<label for="password">密码</label>
            	<input class="input-medium" type="password" value="" name="password" id="password"/>
        	</p>
        	<!-- 
        	<p class="remember">
            	<label for="checkbox1" class="inline">Remember me?</label>
            	<input type="checkbox" value="1" name="checkbox1" id="checkbox1" />
        	</p>
        	 -->
        	<div class="forgot_pw"><a href="#">忘记了密码?</a></div>
        	<p class="clearboth">
            	<input class="button" name="submit" type="submit" value="登录"/>
        	</p>
            </form>
        </div>
        
        <?php if (form_error('name', '<p>', '</p>')):?>
        <div class="login_message message error">
          <?php echo form_error('name', '<p>', '</p>'); ?>
        </div>
        <?php elseif (form_error('password', '<p>', '</p>')):?>
        <div class="login_message message error">
          <?php echo form_error('password', '<p>', '</p>'); ?>
        </div>
        <?php elseif (form_error('login_error', '<p>', '</p>')):?>
        <div class="login_message message error">
          <?php echo form_error('login_error', '<p>', '</p>'); ?>
        </div>
        <?php endif;?>
    </body>
    
</html>